package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(回款计划表实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ReturnPlanInfo extends Model<ReturnPlanInfo> {

	private static final long serialVersionUID = 1616738450334L;

	@TableId(value = "iplan_id", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "iplanId" , value = "回款计划id")
	private String iplanId;

	@NotBlank(message = "客户名称非空")
	@ApiModelProperty(name = "iplanName" , value = "客户名称")
	private String iplanName;

	@ApiModelProperty(name = "iplanLevel" , value = "期数")
	private String iplanLevel;

	@ApiModelProperty(name = "iplanPerson" , value = "负责人")
	private String iplanPerson;

	@ApiModelProperty(name = "iplanStartTime" , value = "计划回款时间")
	private String iplanStartTime;

	@ApiModelProperty(name = "iplanEndTime" , value = "提醒时间")
	private String iplanEndTime;
    
	@ApiModelProperty(name = "iplanTeam" , value = "计划回款方式")
	private String iplanTeam;

	@NotNull(message = "合同编号不能为空")
	@ApiModelProperty(name = "iplanActid" , value = "合同编号")
	private String iplanActid;
    
	@ApiModelProperty(name = "iplanStatus" , value = "状态")
	private String iplanStatus;
    
	@ApiModelProperty(name = "iplanGetMoney" , value = "计划回款金额")
	private String iplanGetMoney;
    
	@ApiModelProperty(name = "iplanOwnMoney" , value = "剩余金额")
	private String iplanOwnMoney;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
	private Integer isDelete;
    
	@ApiModelProperty(name = "remarks" , value = "备注信息")
	private String remarks;


}
